<?php
	if(isset($_SESSION['id'])){
	$Model=new \Common\Model\User;
	$userData=$Model->where('uid',$_SESSION['id'])->find();
//	var_dump($userData);die;
	}	
	?>

<header>
			<div class="hd_top">
				<img src="./public/admin/images/banner1.png"/>
				<ul>
					<li>
						{{if value="isset($_SESSION['id'])"}}						 	
					 	Hi~{{$userData['username']}}<a href="{{U('Home/Login/out')}}">[退出]</a>
					 	{{else}}
					 	<a href="{{U('Home/Login/login')}}">Hi~[请登录]</a>
					 	<a href="{{U('Home/Login/reg')}}">[免费注册]</a>	
					 	{{endif}}
					</li>
					<li><a href="">MY有货 </a></li>
					<li><a href="">订单中心</a></li>
					<li><a href="">帮助中心</a></li>
					<li><a href="">400-8899-646</a></li>
				</ul>
			</div>
			<div class="hr"></div>
		</header>